<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表格标签</title>
</head>
<body>
<table border="1">
    <caption>表格标题</caption>
<!--
colspan跨列   跨几列填几
rowspan跨行   跨几行写几行

-->
    <tr>
        <td colspan="2" align="center">1-1</td>
        <td rowspan="2">1-2</td>

        <td rowspan="3" >1-4</td>
        </tr>
    <tr>
        <td>2-1</td>
        <td>2-2</td>

    </tr>
    <tr>
        <td colspan="3" align="center">3-1</td>

    </tr>
</table>
<table border="2">
    <tr>
        <td colspan="2">1-1</td>
        <td rowspan="2">1-3</td>
    </tr>
    <tr>
        <td rowspan="2">2-1</td>
        <td>2-2</td>

    </tr>
    <tr>

        <td colspan="2">3-2</td>

    </tr>
</table>
<table border="1">
    <caption>购物车</caption>
    <tr>
        <th>编号</th>
        <th>商品名</th>
        <th>价格</th>
    </tr>
    <tr>
        <td>1</td>
        <td>小米电视</td>
        <td>3000</td>
    </tr>
    <tr>
        <td>2</td>
        <td>安卓手机</td>
        <td>1500</td>
    </tr>
    <tr>
        <td>总价：</td>
<!--        跨列     -->
        <td colspan="2" align="center">4500</td>
    </tr>
</table>
</body>
</html>